import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.github.fge.jsonschema.core.exceptions.ProcessingException;

import java.io.File;
import java.io.IOException;

public class JSONtypeTest {

    public static void main(String[] args) throws IOException, ProcessingException {

        String abc="{\"id\":\"123\",\"name\":\"345\"}";
        JSONObject jsonObject= JSON.parseObject(abc);
        System.out.println(jsonObject);
        System.out.println(12434);
        File schemaFile = new File(JSONtypeTest.class.getResource("/").getPath()+"test.json");
        if (ValidationUtils.isJsonValid(schemaFile, abc)){
            System.out.println("Valid!");
        }else {
            System.out.println("NOT valid!");

        }




        }
}